// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore
import ReactDOM from 'react-dom';

export function createRoot(container: HTMLElement) {
  return {
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    //@ts-ignore
    render: (element: JSX.Element) => {
      ReactDOM.render(element, container);
    },
  };
}
